import { createRouter, createWebHistory } from "vue-router";
import Real from "../views/Real.vue";
import AI from "../views/AI.vue";
import Config from "../views/Config.vue";
import Ems from "../views/Ems.vue";
import Spc from "../views/Spc.vue";
import Recipe from "../views/Recipe.vue";
import WorkOrder from "../views/WorkOrder.vue";

const routes = [
  {
    path: "/",
    name: "Real",
    component: Real,
  },
  {
    path: "/real",
    name: "Real",
    component: Real,
  },
  {
    path: "/ai",
    name: "AI",
    component: AI,
  },
  {
    path: "/ems",
    name: "Ems",
    component: Ems,
  },
  {
    path: "/spc",
    name: "Spc",
    component: Spc,
  },
  {
    path: "/recipe",
    name: "Recipe",
    component: Recipe,
  },
  {
    path: "/wo",
    name: "WorkOrder",
    component: WorkOrder,
  },
  {
    path: "/config",
    name: "Config",
    component: Config,
  },
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;
